package com.example.readbook.UI.Act;

import android.content.Intent;

import com.example.readbook.R;
import com.example.readbook.UI.BaseUI.BaseStatusBarActivity;

import java.util.Timer;
import java.util.TimerTask;

/**
 * Package    : com.example.readbook.UI.Act
 * When I wrote this, only The jade emperor and I understood what I was doing, Now God only knows
 * ClassName  : SplashActivity
 * Description: $闪屏页
 * Date       : 2019/3/22 11:30
 */
public class SplashActivity extends BaseStatusBarActivity {
    @Override
    public int getLayoutResID() {
        return R.layout.act_splash;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initListener() {

    }

    @Override
    public void initData() {
        new Timer().schedule(new TimerTask() {
            @Override
            public void run() {
                startActivity(new Intent(mActivity, MainActivity.class));
                mActivity.finish();
            }

        }, 1500);
    }
    
}
